package com.ruoyi.article.mapper;

import java.util.List;
import com.ruoyi.article.domain.ArticleTagReferenced;
import org.apache.ibatis.annotations.Param;

/**
 * 文章标签 Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-04
 */
public interface ArticleTagReferencedMapper 
{
    /**
     * 查询文章标签 
     * 
     * @param atrId 文章标签 主键
     * @return 文章标签 
     */
    public ArticleTagReferenced selectArticleTagReferencedByAtrId(Long atrId);

    /**
     * 查询文章标签 列表
     * 
     * @param articleTagReferenced 文章标签 
     * @return 文章标签 集合
     */
    public List<ArticleTagReferenced> selectArticleTagReferencedList(ArticleTagReferenced articleTagReferenced);

    /**
     * 新增文章标签 
     * 
     * @param articleTagReferenced 文章标签 
     * @return 结果
     */
    public int insertArticleTagReferenced(ArticleTagReferenced articleTagReferenced);

    /**
     * 修改文章标签 
     * 
     * @param articleTagReferenced 文章标签 
     * @return 结果
     */
    public int updateArticleTagReferenced(ArticleTagReferenced articleTagReferenced);

    /**
     * 删除文章标签 
     * 
     * @param atrId 文章标签 主键
     * @return 结果
     */
    public int deleteArticleTagReferencedByAtrId(Long atrId);

    /**
     * 批量删除文章标签 
     * 
     * @param atrIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteArticleTagReferencedByAtrIds(Long[] atrIds);

    public int deleteByArticleId(@Param("articleId")Long articleId);
}
